import axios from "@/utils/request";

export async function getPermssion(providerName, providerKey) {

  const res = await axios.get("/permission-management/permissions", {
    params: {
      providerName,
      providerKey,
    },
  });
  if (res.code == 1) {
    return res.data;
  } else {
    return Promise.reject(new Error(res.message));
  }
}
